{% extends 'user-base.html' %}
{% block active2 %}
<li><a href="{% url 'user:usercenter' %}">个人资料</a></li>
<li class="active2"><a href="{% url 'user:my_course' %}">我的课程</a></li>
<li><a href="{% url 'user:my_fav' %}">我的收藏</a></li>
<li>
<a href="{% url 'user:my_message' %}" style="position: relative;">
我的消息
</a>
</li>
{% endblock %}
{% block right_content %}
    <div class="right" >
		<div class="personal_des Releasecont">
			<div class="head">
				<h1>我的课程</h1>
			</div>
		</div>
		<div class="personal_des permessage">
			<div class="companycenter">
				<div class="group_list brief">
                    {% for course in all_courses %}                   
                    <div class="module1_5 box">
                            <a href="{% url 'course:course_detail' course.id %}">
                                <img width="214" height="190" class="scrollLoading" src="{{ course.image.url }}"/>
                            </a>
                            <div class="des">
                                <a href="{% url 'course:course_detail' course.id %}"><h2>{{ course.name }}</h2></a>
                                <span class="fl">课时：<i class="key">{{ course.learn_time }}</i></span>
                                <span class="fr">学习人数：{{ course.learn_num }}</span>
                            </div>
                            <div class="bottom">
                                <span class="fl">{{ course.organization.name }}</span>
                                <span class="star fr  notlogin" data-favid="15">0</span>
                            </div>
                    </div>
                        {% endfor %}
                    

				</div>
			</div>
		</div>
	</div>


	</div>
{% endblock %}
